package 基础练习;/**
 * @author： li
 * @date： 2022-01-09 10:56
 * @version 1.0
 */

import java.util.Scanner;

/**
 * @author： ljm
 * @date： 2022-01-09 10:56
 * @version 1.0
 */
public class 数列排序02 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int [] a = new int[n];
        for (int i = 0; i < a.length; i++) {
            a[i]=in.nextInt();
        }
        int temp=0;
        for (int i = 0; i < a.length; i++) {
            for (int j = i; j < a.length; j++) {
                if(a[i]>a[j])
                {
                    temp=a[j];
                    a[j]=a[i];
                    a[i]=temp;
                }
            }
        }
        for (int i = 0; i < a.length; i++) {
            if(i==(a.length-1))
                System.out.print(a[i]);
            else
                System.out.print(a[i]+" ");
        }
    }
}
